package com.atguigu.spring5.testdemo;

import com.atguigu.spring5.bean.Emp;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestBean4 {
    @Test
    public void testBean4(){
        ApplicationContext context=
                new ClassPathXmlApplicationContext("bean4.xml");
        Emp emp = (Emp)context.getBean("emp", "Emp.clsaa");
        emp.add();
    }
}
